package com.probiz.estore.product.service;

import java.util.List;

import com.probiz.estore.common.model.product.Product;
import com.probiz.estore.common.model.product.ProductMedia;
import com.probiz.estore.core.service.GenericManager;

/**
 * Manager interface for ProductMedia, responsible for business processing, and communicate between web and persistence layer.
 *
 */
public interface ProductMediaManager extends GenericManager<ProductMedia> {
	
	
	/**
	 * 保存产品媒体，从数组中获取必要参数
	 * product 产品
	 * mediaIds 媒体id;
	 * mediaUrls 媒体url
	 * mediaTypes 媒体类型
	 * mediaDescs 媒体描述
	 * return : 新的媒体id
	 */
	public List<String> saveMediasFromArrays(Product product,String[] mediaIds,String[] mediaUrls,String[] mediaTypes,String[] mediaDesc);
}
